export const state = () => ({
  user: {},
  modalVisible: false
});
export const mutations = {
  setUser(state, payload) {
    state.user = payload.val;
  },
  setModalVisible(state, payload) {
    state.modalVisible = payload.val;
  }
};
export const actions = {
  setUser(ctx, payload) {
    ctx.commit("setUser", payload);
  },
  setModalVisible(ctx, payload) {
    ctx.commit("setModalVisible", payload);
  }
};
